package redis

import (
	"fmt"
	"github.com/go-redis/redis"
	"src/appconfig"
)

var Client *redis.Client

func ExampleNewClient() {
	Data := appconfig.Data.Redis

	Client = redis.NewClient(&redis.Options{
		Addr:     Data.Addr,
		Password: Data.Password,
		DB:       Data.DB,
	})
	fmt.Println("redis连接成功")

}
